package com.cskaoyan.market.service;

import com.cskaoyan.market.db.domain.MarketGoods;

import java.util.List;
import java.util.Map;

public interface MarketGoodsService {

    int count();

    Map<String, Object> category(Integer id);

    Map<String, Object> list(Integer id, Integer page, Integer limit);

    Map<String, Object> listBySearch(String keyword, Integer page, Integer limit, String sort, String order,Integer categoryId);

    Map<String, Object> detail(Integer id,Integer userId);

    List<MarketGoods> related(Integer id);

    Map<String, Object> ListByIsNew(Integer page, Integer limit, String sort, String order);

    Map<String, Object> ListByIsHot(Integer page, Integer limit, String sort, String order);

    Map<String, Object> ListByBrandId(Integer brandId, Integer page, Integer limit);
}
